package com.tsn.service.impl;

import com.tsn.common.Result;
import com.tsn.entity.Personage;
import com.tsn.mapper.PersonageMapper;
import com.tsn.service.PersonageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 名人 服务实现类
 * </p>
 *
 * @author tsn
 * @since 2021-08-13
 */
@Service
public class PersonageServiceImpl extends ServiceImpl<PersonageMapper, Personage> implements PersonageService {
    @Autowired
    private PersonageMapper personageMapper;

    @Override
    public Result listAttentionPersonages(Integer userId) {
        return Result.success("查询成功！", personageMapper.selectAttentionPersonages(userId));
    }
}
